/*
 * File     : NativeObjectList.java
 * Created  : 25 Apr 2011
 *
 * Copyright © 2011 Matthew Wilson (mj. {my-surname} .uk {at} gmail.com)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.googlecode.dni.type;

import java.util.List;


/**
 * <p>
 *  Encapsulates a list of items that are adjacent in memory.
 * </p>
 * <p>
 *  The list implementations will be fixed size.  Some implementations will
 *  permit the elements to be set (usually when the element type itself is
 *  immutable); others will not permit elements to be set (where the element
 *  type itself is mutable).
 *  <!-- TODO consider whether to allow set on StructureList -->
 * </p>
 *
 * @param <E>
 *            the element type
 *
 * @author Matthew Wilson
 */
public interface NativeObjectList< E > extends List< E >, NativeObject
{

    /**
     * {@inheritDoc}
     */
    @Override
    NativeObjectList< E > subList( int fromIndex, int toIndex );

}
